package com.docmgmt.mvp.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * 更新知识库成员权限请求（KB-008）
 *
 * @author Dora
 */
@Data
@Schema(description = "更新知识库成员权限请求")
public class UpdateKbMemberRequest {

    @NotBlank(message = "权限类型不能为空")
    @Pattern(regexp = "read|write|manage", message = "权限类型只能是read/write/manage")
    @Schema(description = "新的权限类型", example = "manage", allowableValues = {"read", "write", "manage"})
    private String permissionType;
}
